/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.mto.quangcao.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;

/**
 * This class is used by SOAP remote services.
 *
 * @author    thanh.tran
 * @generated
 */
public class position_bannerSoap implements Serializable {
	public static position_bannerSoap toSoapModel(position_banner model) {
		position_bannerSoap soapModel = new position_bannerSoap();

		soapModel.setPositionId(model.getPositionId());
		soapModel.setPositionName(model.getPositionName());
		soapModel.setGroupCategoryId(model.getGroupCategoryId());
		soapModel.setPageCategoryId(model.getPageCategoryId());
		soapModel.setWidth(model.getWidth());
		soapModel.setHeight(model.getHeight());

		return soapModel;
	}

	public static position_bannerSoap[] toSoapModels(position_banner[] models) {
		position_bannerSoap[] soapModels = new position_bannerSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static position_bannerSoap[][] toSoapModels(
		position_banner[][] models) {
		position_bannerSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new position_bannerSoap[models.length][models[0].length];
		}
		else {
			soapModels = new position_bannerSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static position_bannerSoap[] toSoapModels(
		List<position_banner> models) {
		List<position_bannerSoap> soapModels = new ArrayList<position_bannerSoap>(models.size());

		for (position_banner model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new position_bannerSoap[soapModels.size()]);
	}

	public position_bannerSoap() {
	}

	public long getPrimaryKey() {
		return _positionId;
	}

	public void setPrimaryKey(long pk) {
		setPositionId(pk);
	}

	public long getPositionId() {
		return _positionId;
	}

	public void setPositionId(long positionId) {
		_positionId = positionId;
	}

	public String getPositionName() {
		return _positionName;
	}

	public void setPositionName(String positionName) {
		_positionName = positionName;
	}

	public long getGroupCategoryId() {
		return _groupCategoryId;
	}

	public void setGroupCategoryId(long groupCategoryId) {
		_groupCategoryId = groupCategoryId;
	}

	public long getPageCategoryId() {
		return _pageCategoryId;
	}

	public void setPageCategoryId(long pageCategoryId) {
		_pageCategoryId = pageCategoryId;
	}

	public long getWidth() {
		return _width;
	}

	public void setWidth(long width) {
		_width = width;
	}

	public long getHeight() {
		return _height;
	}

	public void setHeight(long height) {
		_height = height;
	}

	private long _positionId;
	private String _positionName;
	private long _groupCategoryId;
	private long _pageCategoryId;
	private long _width;
	private long _height;
}